<?php

namespace Modules\Admin\Http\Controllers\SmsVerify;

use Modules\Common\Models\RateTag;
use Modules\Common\Models\SmsVerify;
use Modules\Common\Util\Api;


class Update 
{


    /**
     *@Route(path=/api/admin/sms-verify-reset  method=put)
    */
    public function reset()
    {
        Api::validate(['id' => 'integer']);
        SmsVerify::updateFromArray([
            'id' => request('id'),
            'status' => 1,
            'created_at' => date('Y-m-d H:i:s')
        ]);

        return Api::success();
    }


}
